#ifndef REC_REQ
#define REC_REQ

#define PHP_PAGES 14

struct php_img{
  int noimages;
  char *name;
} ;

struct php_img *php_head;
struct php_img *php_pages;

static void create_new_file(apr_pool_t *, char *, int);
static int decrement_counter(apr_pool_t *, char *);
static void delete_file(apr_pool_t *, char *);
static char *get_file_name(apr_pool_t *, char *);

static void iterate_php(apr_pool_t *);
static void page_info_initialize(apr_pool_t *);
static int get_page(apr_pool_t *p, char *);
static int get_page_from_req(request_rec *);
static int get_img_count(request_rec *);

static void write_message(char *, char *);
#endif
